package com.checker.springcloud.alibaba.controller;

import com.checker.springcloud.alibaba.service.OrderNacosService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class OrderNacsController {

    @Resource
    OrderNacosService orderNacosService;

    @GetMapping("/consumer/payment/nacos/{id}")
    public String getPayment(@PathVariable("id") Integer id) {
        return orderNacosService.getPayment(id);

    }
}
